import java.io.BufferedInputStream;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Like
 * Date: 2021-04-14
 * Time: 8:58
 */

public class inputdemo {
    public static void main(String[] args)
    {
        //Scanner cin = new Scanner(new BufferedInputStream(System.in));
        Scanner cin = new Scanner(System.in);
        int a; double b;
//        a = 12345; b = 1.234567;
//        System.out.println(a + " " + b);
//        System.out.printf("%d %10.5f\n", a, b); // 输入b为字宽为10，右对齐，保留小数点后5位，四舍五入.
        // next方式接收字符串
        System.out.println("next方式接收：");
        // 判断是否还有输入
        if (cin.hasNextLine()) {
            String str1 = cin.nextLine();
            System.out.println("输入的数据为：" + str1);
        }
        cin.close();
    }
}
